#!/usr/bin/env python3
#-*- coding:utf-8 -*-

__author__ = "tongzi"

import socket 


s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(('127.0.0.1',58888))
print(s.recv(1024).decode('utf-8'))

for data in [b'Michael',b'Alice',b'John',b'Bob']:
	s.send(data)
	print(s.recv(1024).decode('utf-8'))

s.send(b'exit')
s.close()


